<template>
  <div>
    <div class="wave-container">
      <div class="wave"></div>
      <div class="wave"></div>
      <div class="wave"></div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
  //语音音波纹样式
  .wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    .wave {
      width: 20px;
      height: 20px;
      margin: 0 5px;
      background-color: #fff;
      border-radius: 10px;
      animation: wave-animation 1s ease-in-out infinite;
    }

    .wave:nth-child(1) {
      animation-delay: 0s;
    }
    .wave:nth-child(2) {
      animation-delay: 0.2s;
    }
    .wave:nth-child(3) {
      animation-delay: 0.5s;
    }

    @keyframes wave-animation {
      0%,
      100% {
        height: 20px;
      }
      50% {
        height: 40px;
      }
    }
  }

</style>
